//
//  MenuDarenZuoPingCollectionViewCell.m
//  Products_B
//
//  Created by lanou on 16/6/3.
//  Copyright © 2016年 朋学友. All rights reserved.
//

#import "MenuDarenZuoPingCollectionViewCell.h"

@implementation MenuDarenZuoPingCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.picImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 40, 40)];
        self.picImageView.layer.cornerRadius = 20;
       
        self.picImageView.layer.masksToBounds = YES;
        
        
        
        [self.contentView addSubview:_picImageView];
    }
    return self;
}
- (void)setModel:(MenuDarenPeoModel *)model{
    _model = model;
    if ([model.head_img isEqualToString: @""]) {
        self.picImageView.image = [UIImage imageNamed:@"menufeiji"];
    }else{
         [self.picImageView sd_setImageWithURL:[NSURL URLWithString:model.head_img] placeholderImage:nil completed:nil];
    }
    
}
@end
